package roby.privateEncryption;

public abstract class KeyGenerator {
	
	private static byte[] key;
	public static void createKey(){
		key = new byte[1024];
		for(int i = 0; i < key.length; i++){
			key[i] = (byte)((int)(Math.random() * 127));
		}
		/*int [] intKey = new int[256];
		for(int i = 0; i < intKey.length; i++){
			int num = (int) (Math.random() * 2147483647);
			intKey[i] = num;
		}
		int index = 0;
		for(int i = 0; i < intKey.length; i++){
			
			for(int j = 0; j < 4; j++){
				
				key[index++] = (byte) (intKey[i] >>> (4 - j) * 8);
				
			}
			
		}*/
	}
	public static byte[] getKey() {
		return key;
	}

}
